package sjtu.rfid.rri.services.dataprocess;

/**
 * This interface defines the operations of filter
 * 
 * @author jinghao
 * 
 */

public interface Filter {
	/**
	 * Return true if the data is filtered, and false if it is not.
	 * 
	 * @param data
	 * @return a boolean value which indicates whether the data is filtered or
	 *         not
	 */
	public boolean doFilter(Object data) throws DataProcessException;

	/**
	 * enable the filter or not
	 * 
	 * @param on
	 *            if true enable, if false disable
	 */
	public void enableFilter(boolean on);
}
